package main

import (
	"fmt"
	"httpami/core"
)

// 扫描器
func main() {
	core.Init_ScanLogger()
	// ip := "127.0.0.1"
	port := 35250
	// channel := "CETX_RASP"
	channel := "CETX_RASP"
	// sr := core.ScanOnce(ip, port, channel)
	// fmt.Printf("sr: %v\n", sr)
	isr, err := core.ScanCIDR("192.168.123.40/24", port, channel, 15)
	if err != nil {
		fmt.Printf("err: %v\n", err)
		return
	}
	fmt.Println("ALL SCAN LIST HEER:")
	for i, isr2 := range isr {
		fmt.Printf("[%v] -> me:%v , ip:%v\n", i, isr2.Me, isr2.Ip)
	}
}
